a11y: Refactor code
authorJoanmarie Diggs <jdiggs@igalia.com>
Wed, 25 Mar 2015 02:57:45 +0000 (03:57 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 25 Mar 2015 03:06:23 +0000 (04:06 +0100)
commitd553c0ae1ed3ef9754e4949d3830dae916750d3b
tree18ac8c29bcf009a59f8fcd56eca81447cae3b100
parent4340e977e4847f3f451a7e397435895afa3107f5
a11y: Refactor code

Put the equality check in front. This allows better detection of when an
insert or delete needs to be emitted.

Also, only emit text-changed:delete if the deleted text is not the empty
string. Only emit text-changed:insert if the inserted text is not the
empty string.

https://bugzilla.gnome.org/show_bug.cgi?id=746706
gtk/a11y/gtktextcellaccessible.c